﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Nothing : System.Web.UI.Page
{
    public void Page_Load(object sender, EventArgs e)
    {
       // skipValue();
        judge();
    }
  /*  public void skipValue()
    {
         if(loginValue.loginState.Equals(""))
         {
             Response.Write("<script >alert('请先登录！');</script>");
             Response.Redirect("UserLogin.aspx");
         }
         else
         {
             Response.Redirect("UserCenterIfram.aspx");
         }
    } 
*/
    public  void judge()
    {
        if (Session["UserName"]==null  || Session["UserName"].ToString()=="")
        {
            Response.Write("<script >alert('请先登录！');</script>");
            Response.Redirect("UserLogin.aspx");
        } 
        else
        {
            string mahua = Session["UserName"].ToString();
            Response.Redirect("UserCenterIfram.aspx");
        }
    }

}